/*
*********************************************************************************************************
*                                             INCLUDE FILES
*********************************************************************************************************
*/
#include "start_task.h"
#include "timer.h"
#include "app_msg.h"
#include "eth_task.h"
#include "os_config.h"
#include "system_cfg.h"
#ifdef CAN_DEVICE_ASYN
#include "can_task.h"
#else
#include "motor_syn.h"
#endif
#include "signal.h"
#include "p2s_input.h"
#include "servo_process.h"
#include "pressure_process.h"
#include "temperature.h"

#include "drive_dc.h"

#include "drive_pwm.h"

#include "motor.h"
#include "misc_task.h"
#include "delay.h"
#include "hc595_led.h"
#include "debug_task.h"
#include "supply.h"
#include "fatfs.h"
#include "iwdg.h"
#include "tcp_transfer.h"
#include "fatfs_task.h"
//#include "rack_io_task.h"
//#include "stdl_claw.h"
#include "pressure_process.h"
#include "stdl_io.h"
#include "temperature.h"
#include "pretreatment.h"
//#include "pressure_npi19.h"

#include "4g_mod.h"

//#include "dmr9045.h"
//#include "lldcx7.h"
static void start_task_init(void);

static void start_process(void *p_arg);


/*
*********************************************************************************************************
*                                              	全局变量定义
*********************************************************************************************************
*/
//OS_TCB		start_task_tcb;

//CPU_STK		start_task_tcb_stk[START_TASK_STK_SIZE];


void start_task_start(void)
{
//	bsp_timer_init();
//	log_console_init();
	system_cfg_init();
//	iwdg_init();
//	hc595_led_init();
//	p2s_input_init();
	delay_init();
	
	drive_dc_init();
	drive_pwm_init();
	
//	stdl_io_init();
	tcp_transfer_init();
	app_msg_pool_init();
	fatfs_task_start();
	eth_task_start();
	
#ifdef CAN_DEVICE_ASYN
	motor_config_init();
	can_task_start();
#else
	motor_syn_init(void);
#endif
	debug_task_start();
	misc_task_start();
	
	pmt_task_start();
}


/*
*********************************************************************************************************
*
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*					
*********************************************************************************************************
*/
